package com.xscha.tableforge.jooq.tables;

import org.jooq.Record;
import org.jooq.UniqueKey;
import org.jooq.impl.DSL;
import org.jooq.impl.Internal;

public class Keys {
    // Node Meta
    public static final UniqueKey<Record> NODE_META_PKEY = Internal.createUniqueKey(NodeMetaTable.NODE_META, DSL.name("node_meta_pkey"), NodeMetaTable.NODE_META.ID);
    
    // App
    public static final UniqueKey<Record> APP_PKEY = Internal.createUniqueKey(AppTable.APP, DSL.name("base_pkey"), AppTable.APP.ID);
    
    // Field Meta
    public static final UniqueKey<Record> FIELD_META_PKEY = Internal.createUniqueKey(FieldMetaTable.FIELD_META, DSL.name("field_pkey"), FieldMetaTable.FIELD_META.ID);
    
    // Relation Mapping
    public static final UniqueKey<Record> RELATION_MAPPING_PKEY = Internal.createUniqueKey(RelationMappingTable.RELATION_MAPPING, DSL.name("relation_mapping_pkey"), RelationMappingTable.RELATION_MAPPING.ID);
    
    // Relation Meta
    public static final UniqueKey<Record> RELATION_META_PKEY = Internal.createUniqueKey(RelationMetaTable.RELATION_META, DSL.name("relation_meta_pkey"), RelationMetaTable.RELATION_META.ID);
    
    // Space
    public static final UniqueKey<Record> SPACE_PKEY = Internal.createUniqueKey(SpaceTable.SPACE, DSL.name("space_pkey"), SpaceTable.SPACE.ID);
    
    // Table Meta
    public static final UniqueKey<Record> TABLE_META_PKEY = Internal.createUniqueKey(TableMetaTable.TABLE_META, DSL.name("table_meta_pkey"), TableMetaTable.TABLE_META.ID);
    
    // View Meta
    public static final UniqueKey<Record> VIEW_META_PKEY = Internal.createUniqueKey(ViewMetaTable.VIEW_META, DSL.name("view_pkey"), ViewMetaTable.VIEW_META.ID);
    
    // Operation Log
    public static final UniqueKey<Record> OPERATION_LOG_PKEY = Internal.createUniqueKey(OperationLogTable.OPERATION_LOG, DSL.name("operation_log_pkey"), OperationLogTable.OPERATION_LOG.ID);
} 